home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu332 / bccterm.arc / BCCTERM.DOC < prev    next >
Text File  |  1989-12-11  |  13KB  |  280 lines

  1.  
  2.  This file contains important information on the installation and operation
  3.  of BCCTERM, written by:
  4.                          Richard Soja,
  5.                          Micro Application,
  6.                          Motorola Semiconductors Ltd,
  7.                          East Kilbride,
  8.                          Scotland.
  9.  
  10.  It can be freely distributed without charge.
  11.  Its functionality has been checked, but I would be pleased to hear of any
  12.  problems you find, or any enhancements you think may be useful.
  13.  
  14.  Contents
  15.  --------
  16.  1. Introduction
  17.  2. Installing BCCTERM
  18.  3. Running BCCTERM
  19.  4. I/O register help files
  20.  
  21.  1. Introduction
  22.  ---------------
  23.  BCCTERM is an MSDOS-based terminal emulator with special features to
  24.  enhance the operation of 32Bug, the monitor on Motorola's 68332 Business
  25.  Card Computer (BCC).
  26.  As the special features are almost completely non-intrusive, BCCTERM can
  27.  be used where any standard terminal emulator is needed.
  28.  The special features provide the following:
  29.  
  30.  1.1 Formatted memory dump or memory modify of 68332 I/O registers.
  31.  ------------------------------------------------------------------
  32.  The standard hexadecimal display of I/O registers by the 32Bug monitor is
  33.  augmented by displaying the registers in a labelled bit field manner.
  34.  In memory modify mode, the register can be editted in binary or hexadecimal,
  35.  using the left and right arrow keys, within a bordered edit window.
  36.  
  37.  The format and labelling of the bit fields is completely defined by a user
  38.  specified file call BCCTERM.FMT. See section 2.2 for details.
  39.  If the file does not exist, this feature is inactive.
  40.  If the file exists, the feature can be toggled off and on by pressing
  41.  the F2 key.
  42.  
  43.  In addition, if a help file is found when in register edit mode, the contents
  44.  of the file can be displayed by pressing the F1 key, and then scanned with
  45.  the up and down cursor control keys. Simultaneously, the left and right arrow
  46.  keys maintain bit field editting of the register contents.
  47.  To close a help window, press the Esc key.
  48.  The help file is identified by possessing the same name as the selected
  49.  register (up to the first 8 significant characters), with the extention .HLP
  50.  
  51.  e.g. The help file for register QMCR is QMCR.HLP
  52.  
  53.  If no help file is associated with the selected register, then the message
  54.  'no help' is displayed on the edit window border.
  55.  
  56.  IMPORTANT NOTES
  57.  ---------------
  58.  i)
  59.  The characters '=','v','^' and '.' are used by 32Bug to control the operation
  60.  of the memory modify command. These characters also can be used while in the
  61.  register edit window. Note that they have immediate effect, rather than having
  62.  to wait for a carriage return to execute. The BCC user manual has more details
  63.  of their function.
  64.  ii)
  65.  Under certain circumstances, when the 32Bug message 'NO MATCH' appears,
  66.  it may be necessary to press the Esc key to exit a register edit window.
  67.  If this is done, no data value is sent to the monitor, and normal, unformatted
  68.  monitor control is restored.
  69.  
  70.  1.2 Symbolic entry of register address.
  71.  ---------------------------------------
  72.  The address of any register, (or any memory mapped location for that
  73.  matter) can be entered symbolically. To select symbolic entry mode, a
  74.  special key must first be pressed. The key can be user defined, in file
  75.  BCCTERM.CFG, but defaults to the key '[' (left square bracket). See section
  76.  2.1 for details of BCCTERM.CFG.
  77.  Symbolic entry is terminated by a space, comma, semicolon, carriage return
  78.  or any arithmetic operator. This means that symbols can be included in
  79.  arithmetic operations.
  80.  
  81.  e.g. md ticr+4
  82.  
  83.  1.3 I/O Register Name and Address Cross Reference
  84.  -------------------------------------------------
  85.  Pressing the F1 key while in normal terminal emulation mode will display a
  86.  short form list of 68332 register names and corresponding addresses, along
  87.  with a brief description. The data for this list is obtained from the user
  88.  defined file BCCTERM.FMT - See section 2.2 for details.
  89.  
  90. ------------------------------------------------------------------------------
  91.  
  92.  2. Installing BCCTERM
  93.  ---------------------
  94.  Three files are supplied: BCCTERM.EXE
  95.                            BCCTERM.CFG
  96.                            BCCTERM.FMT
  97.  
  98.  The file BCCTERM.EXE is the executable portion of the terminal emulator.
  99.  BCCTERM.CFG is a configuration file, and BCCTERM.FMT is the register format
  100.  file. As both .CFG and .FMT files are normal text files, they can be printed
  101.  or editted by most word processors.
  102.  
  103.  Copy all three files into the same directory and ensure that the directory
  104.  is either the current working directory, or its path name is in MSDOS's PATH
  105.  list.
  106.  
  107.  2.1 Configuring BCCTERM
  108.  -----------------------
  109.  Before running BCCTERM, check the BCCTERM.CFG file. It contains the following
  110.  BCCTERM parameters:
  111.  
  112.  PORT=COM1
  113.  This determines which PC COM port is to be used.
  114.  The only current alternative is PORT=COM2
  115.  
  116.  BAUD=9600
  117.  This determines the COM port's baud rate.
  118.  The possible range is BAUD=30 to BAUD=38400.
  119.  
  120.  sym_switch='['
  121.  This defines the character used to switch to symbolic entry. All characters
  122.  typed in after the sym_switch character and up to the symbolic entry
  123.  terminating character will be trapped by BCCTERM, which will then try to
  124.  resolve the symbol to a value, using the data in the file BCCTERM.FMT.
  125.  If successful, BCCTERM outputs the value to the COM port.
  126.  sym_switch can equate to any single character delimited by single quotes, or
  127.  an immediate symbol followed by the ASCII value of the required character.
  128.  
  129.  e.g. sym_switch=#3
  130.  This example will make Ctrl-C the symbolic entry switch character.
  131.  
  132.  IMPORTANT NOTES:
  133.  ----------------
  134.  i)
  135.  There must be no spaces on either side of the '=' symbol in the parameter
  136.  definitions. If BCCTERM detects any errors in the .CFG file, it will abort
  137.  and display an appropriate error message.
  138.  
  139.  ii)
  140.  If BCCTERM cannot find its .CFG file, it will default to the following
  141.  values:
  142.          PORT=COM1
  143.          BAUD=9600
  144.          sym_switch='['
  145.  
  146.  2.2 The Register Format File - BCCTERM.FMT
  147.  ------------------------------------------
  148.  This file contains the symbolic names, hexadecimal addresses and various
  149.  formatting information for the 68332 I/O registers.
  150.  The file is a normal ASCII text file, and can be user modified if necessary.
  151.  Each register has a block of associated data fields. An example block follows:
  152.  
  153.  S:TPU Register Block
  154.  N:TMCR
  155.  A:00FFFE00
  156.  C:    |Prescalers|
  157.  C:STOP|TCR1  TCR2| EMU  T2CG  STF  SUPV  PSCK  Unused  IARBID
  158.  B:  X   XX    XX    X     X    X     X     X     XX     XXXX
  159.  E:
  160.  
  161.  The S: field identifies the start of the block. The text which follows the S:
  162.  is optional, but if it exists, it is displayed in the description field of the
  163.  short form register list (when key F1 is pressed).
  164.  The N: field defines the symbolic name of the register.
  165.  The A: field defines the register's literal address as received by BCCTERM
  166.  from the 32Bug monitor on the BCC. Note that this address must be an exact
  167.  representation of the address from 32Bug, inclusive of all leading zeroes.
  168.  Alternatively this field can be specified with a start address and an end
  169.  address, separated by a single character.
  170.  e.g.  A:00FFFD00-00FFFD1F
  171.  
  172.  This causes any address within the specified range to use the same I/O
  173.  register format. (This form is use to display the QSM queues).
  174.  
  175.  The C: field defines a comment line which is displayed on the terminal screen
  176.  when BCCTERM finds a match between the address from 32Bug and the address in
  177.  the A: field.
  178.  Note that each register can have up to 6 comment lines.
  179.  The B: field defines the locations, identified by the letters X, where the
  180.  value of the register bits (0 or 1) are to be placed. Each X is replace from
  181.  right to left until all Xs are filled or the data value has been exhausted.
  182.  This means that if an 8 bit value is returned by 32Bug to a 16 bit BCCTERM
  183.  format, then only the rightmost 8 bits will be filled. The 8 leftmost bits
  184.  will retain the X character.
  185.  The E: field identifies the end of the block.
  186.  
  187.  Note: The B: key word can be replaced or augmented by an H: key word, which
  188.  will replace each X from right to left, with the hexadecimal value of the
  189.  register. This means that register data can be displayed in either binary or
  190.  hex or both simultaneously.
  191.  However, because the register edit mode of BCCTERM permits only a single edit
  192.  line, it selects the last specified B: or H: field within the block. The other
  193.  field becomes display only.
  194.  Ensure that each register format block starts with an S: field and ends with
  195.  an E: field, otherwise unpredictable operation may result.
  196.  
  197. ------------------------------------------------------------------------------
  198.  
  199.  3. Running BCCTERM
  200.  ------------------
  201.  Once all three files, described above, have been installed in the required
  202.  directory, and the BCCTERM.CFG file optionally modified, from the MSDOS
  203.  prompt, type in: BCCTERM
  204.  
  205.  The monitor will start up and connect to the port and at the baud rate
  206.  specified in the BCCTERM.CFG file (or default to COM1, 9600 baud if .CFG does
  207.  not exist).
  208.  Other default settings for BCCTERM are that the special register formatting
  209.  feature is turned on, and data logging is turned off.
  210.  The keys Esc, F1, F2, F3 and F4 provide control of BCCTERM. They function as
  211.  follows:
  212.  Esc: Quit BCCTERM
  213.  F1 : Display Short Form 68332 Register List. (Explained in Section 1.3)
  214.  F2 : Toggle Register Formatting off or on.   (Explained in Section 1.1)
  215.  F3 : Execute MSDOS command or shell to MSDOS. A command is requested in an
  216.       edit window. If the window is left blank, then BCCTERM shells to MSDOS.
  217.       To return from MSDOS to BCCTERM, type EXIT.
  218.       N.B. For this function to work, COMMAND.COM must exist in the current
  219.       drive's root directory, or alternatively, the environment variable,
  220.       COMSPEC, must be set to the full path name of the COMMAND.COM file.
  221.  
  222.       e.g. COMSPEC=C:\DOS\COMMAND.COM
  223.  
  224.       The environment variable should be added to your AUTOEXEC.BAT file.
  225.  
  226.  F4 : Toggle Data Logging on or off. If data logging is off when this key is
  227.       pressed, then a file name is requested in an edit window. The default
  228.       name of BCCTERM.LOG is offered. When an active data logging session is
  229.       turned off, the log file is closed. Re-starting a logging session with
  230.       the same file name will erase all previously logged data. Shelling to
  231.       MSDOS with the F3 key will not close a log file if logging is active.
  232.  
  233.  IMPORTANT NOTES
  234.  ---------------
  235.  i)
  236.  The edit windows displayed by the F3 or F4 keys use the following edit keys:
  237.  left arrow  - move cursor left one character
  238.  right arrow - move cursor right one character
  239.  Del         - delete character at cursor position
  240.  Ctrl End    - delete all characters from cursor position to end of line
  241.  Ins         - Toggle insert mode on or off.
  242.                (Insert mode identified by blocked cursor)
  243.  Backspace   - delete character to left of cursor
  244.  Return      - close window and execute function
  245.  Esc         - close window but don't execute function
  246.  
  247.  ii)
  248.  Two control key sequences provide additional functions to BCCTERM. These are:
  249.  Ctrl B      - sends 20mS break on COM port.
  250.  Ctrl V      - displays a register edit window for test purposes only.
  251.                (Doesn't need connection to BCC hardware).
  252.  In normal terminal emulator mode, all other keys are transmitted directly to
  253.  the COM port.
  254.  
  255.  3.1 Alternate .CFG and .FMT files
  256.  ---------------------------------
  257.  If BCCTERM is executed without any parameters, at run time, it searches for
  258.  BCCTERM.CFG, BCCTERM.FMT and any .HLP files in the following directories in
  259.  order:
  260.  
  261.   i) current directory
  262.  ii) directory where BCCTERM.EXE is located
  263.  
  264.  However, an alternate set of .CFG and .FMT files may be used by BCCTERM, by
  265.  including a single parameter when invoking BCCTERM. The parameter is then used
  266.  as the base name of the .CFG and .FMT files.
  267.  
  268.  e.g. The MSDOS command: BCCTERM MYTERM
  269.  
  270.  will result in BCCTERM searching for MYTERM.CFG and MYTERM.FMT using the same
  271.  search criteria as above.
  272.  This means that BCCTERM can be executed with different configurations of PC
  273.  ports and register format files.
  274.  
  275.  4. I/O Register Help Files
  276.  --------------------------
  277.  Documentation not yet prepared.
  278.  
  279.  -------------------==================================---------------------
  280.